package com.ecoolex.ying.space.core.dao;

import com.ecoolex.framework.common.pojo.Page;
import com.ecoolex.ying.space.core.mapper.PickGoodsMapper;
import com.ecoolex.ying.space.entity.PickGoodsWithBLOBs;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PickGoodsDAO extends PickGoodsMapper {

    List<PickGoodsWithBLOBs> queryByUserFavorite(@Param("userId") Integer userId, @Param("keyword") String keyword, @Param("page") Page page);

    long countByUserFavorite(@Param("userId") Integer userId, @Param("keyword") String keyword);

    int refreshProductPrice(@Param("pickGoodsId") Integer pickGoodsId);
}